#include "for.h"
#include "forplugin.h"

#include <QtPlugin>

forPlugin::forPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void forPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool forPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *forPlugin::createWidget(QWidget *parent)
{
    return new for(parent);
}

QString forPlugin::name() const
{
    return QLatin1String("for");
}

QString forPlugin::group() const
{
    return QLatin1String("");
}

QIcon forPlugin::icon() const
{
    return QIcon();
}

QString forPlugin::toolTip() const
{
    return QLatin1String("");
}

QString forPlugin::whatsThis() const
{
    return QLatin1String("");
}

bool forPlugin::isContainer() const
{
    return false;
}

QString forPlugin::domXml() const
{
    return QLatin1String("<widget class=\"for\" name=\"for\">\n</widget>\n");
}

QString forPlugin::includeFile() const
{
    return QLatin1String("for.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(forplugin, forPlugin)
#endif // QT_VERSION < 0x050000
